﻿#if USE_UNI_LUA
using LuaAPI = UniLua.Lua;
using RealStatePtr = UniLua.ILuaState;
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
#else
using LuaAPI = XLua.LuaDLL.Lua;
using RealStatePtr = System.IntPtr;
using LuaCSFunction = XLuaBase.lua_CSFunction;
#endif

using XLua;
using System.Collections.Generic;


namespace XLua.CSObjectWrap
{
    using Utils = XLua.Utils;
    public class YoozooGtaProjBuilderSubPackageToolWrap 
    {
        public static void __Register(RealStatePtr L)
        {
			ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			System.Type type = typeof(Yoozoo.Gta.ProjBuilder.SubPackageTool);
			Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0);
			
			
			
			
			
			
			Utils.EndObjectRegister(type, L, translator, null, null,
			    null, null, null);

		    Utils.BeginClassRegister(type, L, __CreateInstance, 8, 1, 1);
			Utils.RegisterFunc(L, Utils.CLS_IDX, "UseAsset", _m_UseAsset_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "OnGuideFinish", _m_OnGuideFinish_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "SetAssetOrder", _m_SetAssetOrder_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "SetAppConfig", _m_SetAppConfig_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "IsKnownRpgAsset", _m_IsKnownRpgAsset_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "CollectRpgAssets", _m_CollectRpgAssets_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "CollectFirstPackageAssets", _m_CollectFirstPackageAssets_xlua_st_);
            
			
            
			Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "RpgAssetRootPaths", _g_get_RpgAssetRootPaths);
            
			Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "RpgAssetRootPaths", _s_set_RpgAssetRootPaths);
            
			
            Utils.RegisterFunc(L, Utils.CLS_IDX, "New", __CreateInstanceNew);
			Utils.EndClassRegister(type, L, translator);
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int __CreateInstance(RealStatePtr L)
        {
            
			try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
				if(LuaAPI.lua_gettop(L) == 1)
				{
					
					var gen_ret = new Yoozoo.Gta.ProjBuilder.SubPackageTool();
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				
			}
			catch(System.Exception gen_e) {
				return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
			}
            return LuaAPI.luaL_error(L, "invalid arguments to Yoozoo.Gta.ProjBuilder.SubPackageTool constructor!");
            
        }

        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int __CreateInstanceNew(RealStatePtr L)
        {
            
			try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
				if(LuaAPI.lua_gettop(L) == 0)
				{
					
					var gen_ret = new Yoozoo.Gta.ProjBuilder.SubPackageTool();
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				
			}
			catch(System.Exception gen_e) {
				return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
			}
            return LuaAPI.luaL_error(L, "invalid arguments to Yoozoo.Gta.ProjBuilder.SubPackageTool constructor!");
            
        }

        
		
        
		
        
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_UseAsset_xlua_st_(RealStatePtr L)
        {
		    try {
            
            
            
                
                {
                    string _assetName = LuaAPI.lua_tostring(L, 1);
                    
                    Yoozoo.Gta.ProjBuilder.SubPackageTool.UseAsset( _assetName );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_OnGuideFinish_xlua_st_(RealStatePtr L)
        {
		    try {
            
            
            
                
                {
                    int _order = LuaAPI.xlua_tointeger(L, 1);
                    
                    Yoozoo.Gta.ProjBuilder.SubPackageTool.OnGuideFinish( _order );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SetAssetOrder_xlua_st_(RealStatePtr L)
        {
		    try {
            
            
            
                
                {
                    int _order = LuaAPI.xlua_tointeger(L, 1);
                    
                    Yoozoo.Gta.ProjBuilder.SubPackageTool.SetAssetOrder( _order );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SetAppConfig_xlua_st_(RealStatePtr L)
        {
		    try {
            
            
            
                
                {
                    bool _isFirstPackage = LuaAPI.lua_toboolean(L, 1);
                    
                    Yoozoo.Gta.ProjBuilder.SubPackageTool.SetAppConfig( _isFirstPackage );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_IsKnownRpgAsset_xlua_st_(RealStatePtr L)
        {
		    try {
            
            
            
                
                {
                    string _assetPath = LuaAPI.lua_tostring(L, 1);
                    
                        var gen_ret = Yoozoo.Gta.ProjBuilder.SubPackageTool.IsKnownRpgAsset( _assetPath );
                        LuaAPI.lua_pushboolean(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_CollectRpgAssets_xlua_st_(RealStatePtr L)
        {
		    try {
            
            
            
                
                {
                    
                    Yoozoo.Gta.ProjBuilder.SubPackageTool.CollectRpgAssets(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_CollectFirstPackageAssets_xlua_st_(RealStatePtr L)
        {
		    try {
            
            
            
                
                {
                    string _tag = LuaAPI.lua_tostring(L, 1);
                    
                    Yoozoo.Gta.ProjBuilder.SubPackageTool.CollectFirstPackageAssets( _tag );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_RpgAssetRootPaths(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			    translator.Push(L, Yoozoo.Gta.ProjBuilder.SubPackageTool.RpgAssetRootPaths);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_RpgAssetRootPaths(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			    Yoozoo.Gta.ProjBuilder.SubPackageTool.RpgAssetRootPaths = (string[])translator.GetObject(L, 1, typeof(string[]));
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
		
		
		
		
    }
}
